package com.example.rentalcar.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 订单列表对象 orders
 * 
 * @author ruoyi
 * @date 2024-01-02
 */
@TableName("orders")
public class Orders
{

    /** 订单id */
    private Long orderId;

    /** 用户id */

    private Long userId;

    /** 车辆id */

    private Long carId;

    /** 车主id */

    private Long driverId;

    /** 租车起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date startTime;

    /** 租车结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date endTime;

    /** 维修id,未维修为NULL */

    private Long fixId;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setDriverId(Long driverId) 
    {
        this.driverId = driverId;
    }

    public Long getDriverId() 
    {
        return driverId;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setFixId(Long fixId) 
    {
        this.fixId = fixId;
    }

    public Long getFixId() 
    {
        return fixId;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "orderId=" + orderId +
                ", userId=" + userId +
                ", carId=" + carId +
                ", driverId=" + driverId +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", fixId=" + fixId +
                '}';
    }

    public Orders() {
    }
}
